﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LearnDrive
{
    public static class MySelect
    {
        public static string typelx = "";//类型
        public static string typekm = "";//科目
        public static string changci = "";//场次
        public static bool isrand =true;//顺序
        public static string codebm = "";//编码
        public static string zhangjie = "";
        public static string zhangjie_s = "";
        public static string type = "1";
        private static int isjichu = 0;

        public static int Isjichu
        {
            get { return MySelect.isjichu; }
            set {
                setzero(value);
                MySelect.isjichu = value; }
        }
        private static int isqianghua = 0;

        public static int Isqianghua
        {
            get { return MySelect.isqianghua; }
            set
            {
                setzero(value);
                MySelect.isqianghua = value; }
        }
        private static int iszhuanxiang = 0;

        public static int Iszhuanxiang
        {
            get { return MySelect.iszhuanxiang; }
            set
            {
                setzero(value);
                MySelect.iszhuanxiang = value; }
        }
        private static int iszhangjie = 0;

        public static int Iszhangjie
        {
            get { return MySelect.iszhangjie; }
            set
            {
                setzero(value);
                MySelect.iszhangjie = value; }
        }
        private static int issucheng = 0;

        public static int Issucheng
        {
            get { return MySelect.issucheng; }
            set
            {
                setzero(value);
                MySelect.issucheng = value; }
        }
        public static void setzero(int i)
        {
            if (i == 1)
            {
                isjichu = 0;
                isqianghua = 0;
                iszhuanxiang = 0;
                iszhangjie = 0;
                issucheng = 0;
            }

        }
        public static int wenmang;
    }
}
